const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  token: state => state.user.token, // 建立token快捷访问
  name: state => state.user.userInfo.username, // 建立用户名快捷访问
  userId: state => state.user.userInfo.userId, // 建立用户id快捷访问
  staffPhoto: state => state.user.userInfo.staffPhoto, // 建立用户头像快捷访问
  companyId: state => state.user.userInfo.companyId, // 建立公司id的快捷访问
  routes: state => state.permission.routes, // 建立动态路由的快捷访问
  points: state => state.user.userInfo.roles.points,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  avatar: state => state.user.avatar,
  introduction: state => state.user.introduction,
  roles: state => state.user.roles,
  permission_routes: state => state.permission.routes,
  errorLogs: state => state.errorLog.logs
}
export default getters
